<!DOCTYPE html>
<html>
    <head>
        <title>123</title>
        <link rel='stylesheet' href='/stylesheets/style.css' />
    </head>
    <body>
        <h1>123</h1>
        <button id="btn">ttt</button>
        <a href="index.html">123</a>
    </body>
    <script src="/javascripts/jquery-3.0.0.min.js"></script>
    <script>
    $("#btn").on("click",function(){
        $.ajax({
            type:"get",
            url:"http://localhost:3000/home/banner",
            dataType:"json",
            success:function(res){
                alert(JSON.stringify(res));
            },
            error:function(res){
                alert(JSON.stringify(res));
            }
        })
    });
    </script>
</html>
